<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>requirejs</title>
    <script src="./require.js"></script>
</head>

<body>

</body>
<script>
    // 引入a.js
    require(['a'], function (obj) {
        console.log(obj)
    })
</script>

</html>